package com.ccsc.auth.entity;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 用户
 * Created by XingWen on 2017/2/8.
 */
public class User {
    private Integer id;//用户id
    private String account;//用户账号
    private String name;//姓名
    private String password;//用户密码
    private Integer sex;//用户性别
    private String mail;//邮箱
    private String phone;//电话
    private Integer status;//状态
    //多个部门多个职位，但是部门和职位一一对应
    private List<Map<Department,Position>> positionMap;//部门职位
    private List<Role> roleList;//角色
    private List<Resource> resourceList;//资源集合

    private Integer sysuserid;

    /**
     * 多了两个字段
     * @return
     */
    //验证类型
    private Integer verify_type;
    //如果是ip方式 verify_type值>1 则填写ip段
    private String verify_value;

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<Map<Department, Position>> getPositionMap() {
        return positionMap;
    }

    public void setPositionMap(List<Map<Department, Position>> positionMap) {
        this.positionMap = positionMap;
    }

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }

    public List<Resource> getResourceList() {
        return resourceList;
    }

    public void setResourceList(List<Resource> resourceList) {
        this.resourceList = resourceList;
    }

    public Integer getVerify_type() {
        return verify_type;
    }

    public void setVerify_type(Integer verify_type) {
        this.verify_type = verify_type;
    }

    public String getVerify_value() {
        return verify_value;
    }

    public void setVerify_value(String verify_value) {
        this.verify_value = verify_value;
    }

    public Integer getSysuserid() {
        return sysuserid;
    }

    public void setSysuserid(Integer sysuserid) {
        this.sysuserid = sysuserid;
    }
}
